package com.todod.entity;

public class Res {

	private final static int successCode = 200;
	private int code;
	private String msg;

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public boolean onSuccess() {
		return successCode == code;
	}

	@Override
	public String toString() {
		return "Res [code=" + code + ", msg=" + msg + "]";
	}

}
